﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _uitwerking__Algoritmiek.AssignementForms
{
    public partial class form_FAC1 : Form
    {
        code_FAC1 algoritme;
        
        public form_FAC1(code_FAC1 algoritme)
        {
            this.algoritme = algoritme;
            InitializeComponent();
        }

        private void btn_bereken_Click(object sender, EventArgs e)
        {
            algoritme.Berekeningen = 0;
            lbl_uitvoer.Text = algoritme.Execute(Convert.ToInt32(tb_invoer.Text)).ToString();
            lbl_stappen.Text = algoritme.Berekeningen.ToString();
        }
    }
}
